package com.learning.dynamic.executor.configcenter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class AbstractDynamicConfigCenter<T> implements DynamicConfigCenter<T> {
    public static final Logger LOGGER = LoggerFactory.getLogger(AbstractDynamicConfigCenter.class);

    private T configService;

    public AbstractDynamicConfigCenter(T configService) {
        this.configService = configService;
    }

    @Override
    public T getConfigService() {
        return configService;
    }

    public abstract String getConfigValue(String key);

    public abstract String getConfigValue(String key, long timeoutMs);

}
